<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Cadastro de Aluno</title>
    </h:head>
    <h:body>
        Preencha os campos
         <ui:composition template="./face-professor.xhtml">
            
            
            <ui:define name="login"><h:outputText id="lblBemVindo" value="#{login.professor.nome}" /></ui:define>
            <ui:define name="content">
                <h:form>
                    <p:panel header="Cadastro de ALuno">
                        <h:outputLabel id="lblNome" value="Nome:"/>
                        <h:inputText id="txtNome" value="#{alunoImplements.aluno.nome}" required="true"/>
                        <br/>
                        <h:outputLabel id="lblSobrenome" value="Sobrenome:"/>
                        <h:inputText id="txtSobrenome" value="#{alunoImplements.aluno.sobrenome}" required="true"/>
                        <br/>
                        <h:outputLabel id="lblRg" value="RG: " />
                        <p:inputMask id="txtRg" value="#{alunoImplements.aluno.rg}" required="true"  title="Campo Obrigatório" mask="9.999.999-9"/>
                        <br/>
                        <h:outputLabel id="lblCpf" value="CPF: " />
                        <p:inputMask id="txtCpf" value="#{alunoImplements.aluno.cpf}" required="true" title="Campo Obrigatório" mask="999.999.999-99"/>
                        <br/>
                        <h:outputLabel id="lblCep" value="CEP: " />
                        <p:inputMask id="txtCep" value="#{alunoImplements.aluno.cep}" required="true" title="Campo Obrigatório" mask="9999-999"/>
                        <h:outputLabel id="lblCepMsg" value="#{alunoImplements.cepValidation}" />
                        <br/>
                        <h:outputLabel id="lblDataNasc" value="Data de Nascimento: " />
                        <p:calendar value="#{alunoImplements.aluno.dataNascimento}" />
                        <br/>
                        <h:outputLabel id="lblLogin" value="Login:"/>
                        <h:inputText id="txtLogin" value="#{alunoImplements.aluno.login}" required="true"/>
                        <br/>
                        <h:outputLabel id="lblSenha" value="Senha:"/>
                        <h:inputSecret id="txtSenha" value="#{alunoImplements.aluno.senha}" required="true"/>
                        <br/>
                        <!--<h:outputLabel id="lblTipo" value="Tipo:"/>
                        <h:inputText id="txtTipo" value="" required="true"/>
                        <br/>-->
                        <h:outputLabel id="lblSalvar" value="Clique para salvar:"/>
                        <h:commandButton action="#{alunoImplements.salvar}" value="Salvar"/>
                    </p:panel>
                </h:form>
            </ui:define>
               
        </ui:composition>
        
    </h:body>
</html>

